<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RRRSRoguelike: RRRSRoguelike.Entities.Creature Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="RRRSRoguelike.ico"></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">RRRSRoguelike&#160;<span id="projectnumber">0.3.0.</span></div>
   <div id="projectbrief">This is a Roguelike C# game that has a really simple goal - pickup a sword and kill the monster(s). Of course if you don't pickup the sword you can guess what happens.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_r_r_r_s_roguelike.html">RRRSRoguelike</a>      </li>
      <li class="navelem"><a class="el" href="namespace_r_r_r_s_roguelike_1_1_entities.html">Entities</a>      </li>
      <li class="navelem"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html">Creature</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="#events">Events</a>  </div>
  <div class="headertitle">
<h1>RRRSRoguelike.Entities.Creature Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="RRRSRoguelike::Entities::Creature" --><!-- doxytag: inherits="RRRSRoguelike::Entities::Tile" -->
<p>base class for all living entities  
<a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for RRRSRoguelike.Entities.Creature:</div>
<div class="dyncontent">
<div class="center"><img src="class_r_r_r_s_roguelike_1_1_entities_1_1_creature__inherit__graph.png" border="0" usemap="#_r_r_r_s_roguelike_8_entities_8_creature_inherit__map" alt="Inheritance graph"/></div>
<map name="_r_r_r_s_roguelike_8_entities_8_creature_inherit__map" id="_r_r_r_s_roguelike_8_entities_8_creature_inherit__map">
<area shape="rect" id="node5" href="class_r_r_r_s_roguelike_1_1_entities_1_1_monster.html" title="Represents the current sole bad guy." alt="" coords="5,155,219,181"/><area shape="rect" id="node7" href="class_r_r_r_s_roguelike_1_1_entities_1_1_player.html" title="Player inherits from creature." alt="" coords="243,155,447,181"/><area shape="rect" id="node2" href="class_r_r_r_s_roguelike_1_1_entities_1_1_tile.html" title="Tile" alt="" coords="207,5,249,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for RRRSRoguelike.Entities.Creature:</div>
<div class="dyncontent">
<div class="center"><img src="class_r_r_r_s_roguelike_1_1_entities_1_1_creature__coll__graph.png" border="0" usemap="#_r_r_r_s_roguelike_8_entities_8_creature_coll__map" alt="Collaboration graph"/></div>
<map name="_r_r_r_s_roguelike_8_entities_8_creature_coll__map" id="_r_r_r_s_roguelike_8_entities_8_creature_coll__map">
<area shape="rect" id="node2" href="class_r_r_r_s_roguelike_1_1_entities_1_1_tile.html" title="Tile" alt="" coords="69,96,112,123"/><area shape="rect" id="node4" href="class_r_r_r_s_roguelike_1_1_managers_1_1_action_manager.html" title="Stores a list of actions along with the keys mapped to those actions Checks action map against the in..." alt="" coords="136,96,403,123"/><area shape="rect" id="node6" href="class_r_r_r_s_roguelike_1_1_managers_1_1_input_manager.html" title="RRRSRoguelike.Managers.InputManager" alt="" coords="5,5,264,32"/><area shape="rect" id="node8" href="class_r_r_r_s_roguelike_1_1_helpers_1_1_action_map.html" title="RRRSRoguelike.Helpers.ActionMap" alt="" coords="288,5,517,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#a77a97318328c280453ec2f3a2859f7fa">Creature</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#aeca04f991faa163f88fd541cdcfe66b0">Creature</a> (string imageCharacter, ConsoleColor color, Point position)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">delegate void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#a626d6602b7b8845bd80b9d02a9c8cb0b">CreatureDeadHandler</a> (Object sender)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method for creature dead event.  <a href="#a626d6602b7b8845bd80b9d02a9c8cb0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#a6d8c4aa891af9de08f49411b062d808f">CalculateBestMove</a> (Point target)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#acc4237af8a054c84255c60dbfb6d809b">Moves</a> = new int[8]</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#a354c30fb458a41171e5387c22beb677a">Alive</a><code> [get]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#a05e484cd835df4c17fe8ad1f4af05163">Hits</a><code> [get, set]</code></td></tr>
<tr><td colspan="2"><h2><a name="events"></a>
Events</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CreatureDeadHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#ade4e1dc4dc205410f8b112f1da0ef68e">CreatureDeadEvent</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Event called when creature dies.  <a href="#ade4e1dc4dc205410f8b112f1da0ef68e"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>base class for all living entities </p>

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00015">15</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a77a97318328c280453ec2f3a2859f7fa"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::Creature" ref="a77a97318328c280453ec2f3a2859f7fa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RRRSRoguelike.Entities.Creature.Creature </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00036">36</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aeca04f991faa163f88fd541cdcfe66b0"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::Creature" ref="aeca04f991faa163f88fd541cdcfe66b0" args="(string imageCharacter, ConsoleColor color, Point position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RRRSRoguelike.Entities.Creature.Creature </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>imageCharacter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ConsoleColor&#160;</td>
          <td class="paramname"><em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Point&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00038">38</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6d8c4aa891af9de08f49411b062d808f"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::CalculateBestMove" ref="a6d8c4aa891af9de08f49411b062d808f" args="(Point target)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RRRSRoguelike.Entities.Creature.CalculateBestMove </td>
          <td>(</td>
          <td class="paramtype">Point&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00079">79</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a6d8c4aa891af9de08f49411b062d808f_cgraph.png" border="0" usemap="#class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a6d8c4aa891af9de08f49411b062d808f_cgraph" alt=""/></div>
<map name="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a6d8c4aa891af9de08f49411b062d808f_cgraph" id="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a6d8c4aa891af9de08f49411b062d808f_cgraph">
<area shape="rect" id="node3" href="class_r_r_r_s_roguelike_1_1_helpers_1_1_dungeon.html#a45fbb1b92e3a635eed82060f5e6cb5e8" title="RRRSRoguelike.Helpers.Dungeon.AddPoints" alt="" coords="391,5,673,32"/><area shape="rect" id="node5" href="class_r_r_r_s_roguelike_1_1_helpers_1_1_dungeon.html#ab652da5a3a44244c16263a5104758243" title="always returns positive" alt="" coords="385,56,679,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a626d6602b7b8845bd80b9d02a9c8cb0b"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::CreatureDeadHandler" ref="a626d6602b7b8845bd80b9d02a9c8cb0b" args="(Object sender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delegate void RRRSRoguelike.Entities.Creature.CreatureDeadHandler </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method for creature dead event. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sender</td><td></td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a626d6602b7b8845bd80b9d02a9c8cb0b_icgraph.png" border="0" usemap="#class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a626d6602b7b8845bd80b9d02a9c8cb0b_icgraph" alt=""/></div>
<map name="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a626d6602b7b8845bd80b9d02a9c8cb0b_icgraph" id="class_r_r_r_s_roguelike_1_1_entities_1_1_creature_a626d6602b7b8845bd80b9d02a9c8cb0b_icgraph">
<area shape="rect" id="node3" href="class_r_r_r_s_roguelike_1_1_managers_1_1_creature_manager.html#a5605c55b32c77f3f11e60cd4c21276a2" title="RRRSRoguelike.Managers.CreatureManager.AddRandomMonster" alt="" coords="398,5,799,32"/><area shape="rect" id="node5" href="class_r_r_r_s_roguelike_1_1_managers_1_1_creature_manager.html#adb5cb32dcc8fae6447689b445f846236" title="RRRSRoguelike.Managers.CreatureManager.CreatureManager" alt="" coords="407,56,790,83"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="acc4237af8a054c84255c60dbfb6d809b"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::Moves" ref="acc4237af8a054c84255c60dbfb6d809b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int [] <a class="el" href="class_r_r_r_s_roguelike_1_1_entities_1_1_creature.html#acc4237af8a054c84255c60dbfb6d809b">RRRSRoguelike.Entities.Creature.Moves</a> = new int[8]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00029">29</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a354c30fb458a41171e5387c22beb677a"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::Alive" ref="a354c30fb458a41171e5387c22beb677a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RRRSRoguelike.Entities.Creature.Alive<code> [get]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00048">48</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a05e484cd835df4c17fe8ad1f4af05163"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::Hits" ref="a05e484cd835df4c17fe8ad1f4af05163" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int RRRSRoguelike.Entities.Creature.Hits<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00061">61</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<hr/><h2>Event Documentation</h2>
<a class="anchor" id="ade4e1dc4dc205410f8b112f1da0ef68e"></a><!-- doxytag: member="RRRSRoguelike::Entities::Creature::CreatureDeadEvent" ref="ade4e1dc4dc205410f8b112f1da0ef68e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CreatureDeadHandler RRRSRoguelike.Entities.Creature.CreatureDeadEvent</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Event called when creature dies. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sender</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_creature_8cs_source.html#l00027">27</a> of file <a class="el" href="_creature_8cs_source.html">Creature.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/Andrew Sadler/Desktop/Sync/RRRS Rogue/RootII/rrrsroguelike/RRRSRoguelike/Entities/Creatures/<a class="el" href="_creature_8cs_source.html">Creature.cs</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Fri Aug 24 2012 20:45:13 for RRRSRoguelike by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
